package 设计模式.e_外观模式;

/**
 * person的外观类
 * 用来定义person一系列行为
 * 
 * 
 * @author caihe
 * @date 2023/3/9 16:16
 */
public class PersonFacade {

    private Person person;
    
    public PersonFacade(Person person) {
        this.person = person;
    }

    public void startStudy() {
        person.action(Action.WAKEUP, Action.LISTEN_MUSIC, Action.STUDY);
    }
    
    public void sleep() {
        person.action(Action.PLAY_GAME, Action.SLEEP);
    }
    
    
    
}
